import React from 'react'
import classnames from 'classnames'
type Props = {
  className?: string
  type: string
}
const Icon = ({ className, type }: Props) => {
  return (
    <svg className={classnames('icon', className)} aria-hidden="true">
      <use xlinkHref={`#${type}`}></use>
    </svg>
  )
}

export default Icon
